package org.finesys.common.dataPermission.aop;

import lombok.Getter;
import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.DefaultPointcutAdvisor;

@Getter
public class DataPermissionAnnotationAdvisor extends DefaultPointcutAdvisor {

    private final Advice advice;
    private final Pointcut pointcut;

    public DataPermissionAnnotationAdvisor() {
        //自定义通知
        this.advice = DataPermissionCustomAdvice.of();
        //自定义切入点
        this.pointcut = DataPermissionCustomPointCut.of();
    }
}
